package net.bblot.lottery.api.request;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;

import net.bblot.lottery.PackegeConfig;
import net.bblot.lottery.api.ApiResponseListener;
import net.bblot.lottery.api.task.HttpTask;

import android.content.Context;
import android.os.Handler;

public class PostFile {
	public static HttpTask postFile(Context context, ApiResponseListener listener,ArrayList<File> fileArray) {
		String url = PackegeConfig.Base_url + "/api?m=system.AppInfo.getSplashPic";
		List<NameValuePair> queryParams = new ArrayList<NameValuePair>();
		final Handler handler = HttpTask.getHttpHandler(listener);
		return HttpTask.getTask(handler, context, url, HttpTask.HTTP_REQEST_TYPE_POST, queryParams, null, fileArray, "upfile");
	}

	public static class Result {
		public ArrayList<Image> imagearray;

		public static class Image {
			private String link_url;
		}

	}
}
